package com.powernode.ssm.dao;

import com.powernode.ssm.bean.Student;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

/**
 * @Author: 曾铖坚
 * @Date: 2024/10/11 17:40
 * @Version: 1.0.0
 */
public interface StudentDao {
    @Select("select * from t_stu where sid = #{id}")
    Student selectBySid(Integer id);

    @Insert("insert into t_stu values(sid = #{sid},sname = #{sname},cid = #{cid})")
    int insert(Student student);
}
